<?php /* @var $this Controller  */ ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <?php $this->renderPartial('//layouts/includes/head'); ?>
        <script>

            var baseUrl = "<?php echo Yii::app()->baseUrl . '/index.php/'; ?>";
            var baseUrlClean = "<?php echo Yii::app()->baseUrl; ?>";
        </script>
    </head>
    <body>
        <!-- topbar starts -->
        <div class="navbar">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse"
                       data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse"> <span
                            class="icon-bar"></span> <span class="icon-bar"></span> <span
                            class="icon-bar"></span>
                    </a> 
                    <a class="brand" href="<?php echo Yii::app()->baseUrl ?>">
                        <span > <img style="-moz-border-radius: 7px;-webkit-border-radius: 7px;" src="<?php echo Yii::app()->baseUrl ?>/img/login/logo3mini_opt.jpg" /></span>
                        <span>Nutrición a la medida</span>
                    </a>
                    <!-- theme selector starts -->
                    <!-- theme selector ends -->
                    <?php /*  */ ?>

                    <!-- user dropdown starts -->
                    
                    <div class="btn-group pull-right">
                        <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i
                                class="icon-user"></i><span class="hidden-phone"> <?php echo Yii::app()->user->name ?>
                            </span> <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Profile</a></li>
                            <li class="divider"></li>
                            <li><?php echo CHtml::link('Logout', array('/site/logout')); ?></li>
                        </ul>
                    </div>
                    <!-- user dropdown ends -->

                    <!--                    <div class="top-nav nav-collapse">
                                            <ul class="nav">
                                                <li><a href="#">Visit Site</a></li>
                                                <li>
                                                    <form class="navbar-search pull-left"
                                                          action="<?php // echo Yii::app()->createUrl('/site/search')  ?>">
                                                        <input placeholder="Search" class="search-query span2"
                                                               name="query" type="text">
                                                    </form>
                                                </li>
                                            </ul>
                                        </div>-->
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <!-- topbar ends -->
        <div id="wrap">
            <div  class="container-fluid">
                <div class="row-fluid">
                    <!-- left menu starts -->
                    <?php $this->widget('Wmain', array('view' => 'menu')); ?>
                    <!-- left menu ends -->

                    <noscript>
                    <div class="alert alert-block span10">
                        <h4 class="alert-heading">Warning!</h4>
                        <p>
                            You need to have <a href="http://en.wikipedia.org/wiki/JavaScript"
                                                target="_blank">JavaScript</a> enabled to use this site.
                        </p>
                    </div>
                    </noscript>

                    <div id="content" class="span10">
                        <!-- content starts -->
                        <div>
                            <div class="breadcrumb">
                                <?php
                                if (empty($this->breadcrumbs))
                                    $this->breadcrumbs = array('');
                                $this->widget('zii.widgets.CBreadcrumbs', array(
                                    'links' => $this->breadcrumbs,
                                ));
                                ?>
                                <!-- breadcrumbs -->

                            </div>
                        </div>
                        <?php
                        foreach (Yii::app()->user->getFlashes() as $key => $message) {
                            echo '<div class="alert alert-' . $key . '">
					<button type="button" class="close" data-dismiss="alert">×</button>' . ucfirst($message) . '</div>';
                        }
                        ?>
                        <?php echo $content; ?>

                        <!-- content ends -->
                    </div>
                    <!--/#content.span10-->
                </div>
                <!--/fluid-row-->
                <hr>
<!--                <div class="modal hide fade" id="myModal">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><i class="icon-remove"></i></button>
                        <h3 id="titlemodal"> </h3>
                    </div>
                    <div class="modal-body">
                        <p> </p>
                    </div>
                    <div class="modal-footer">
                        <a href="#" id="modalclose" class="btn" data-dismiss="modal">Close</a> 
                        <a href="#" id="modalsave" class="btn btn-primary">Save changes</a>
                    </div>
                </div>-->
            </div>
        </div>
        <footer>
            <center> 
                <a href="http://www.utn.edu.ec" target="_blank"> 
                    <img style="-moz-border-radius: 7px;-webkit-border-radius: 7px;" alt=" Universidad Técnica del Norte "   src="<?php echo Yii::app()->baseUrl ?>/img/logoutn.jpg" /></a> 
                <a href="http://www.ieps.gob.ec" target="_blank">
                    <img  style="-moz-border-radius: 7px;-webkit-border-radius: 7px;"  alt=" Instituto Nacional de Economía Popular y Solidaria "
                            src="<?php echo Yii::app()->baseUrl ?>/img/logoieps.jpg" /> </a> 
            </center>
        </footer>
        <!--/.fluid-container-->
        <?php $this->renderPartial('//layouts/includes/foot'); ?>
        <script>
            $(function() {
                $("input[type='checkbox']").css('opacity', '100');
            });</script>

    </body>
</html>
